home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / nostalji / bbs / modem / fx.arj / README.BOX < prev   
Text File  |  1989-11-08  |  24KB  |  474 lines

  1.             EXPANSION BOX REFERENCE MANUAL
  2.  
  3.             Published by Rupp Corporation
  4.      Copyright (C) 1989 by Sewell Development Corporation
  5.  
  6.     Expansion Box is a set of programs that allow one IBM compatible
  7. PC to use the disks and printers of another IBM compatible PC.    This
  8. document describes the various device driver and TSR modules of
  9. Expansion Box.
  10.  
  11. Note:  Expansion Box and FastLynx are independent programs.  FastLynx
  12. does not require Expansion Box nor does Expansion Box require
  13. FastLynx.  However, it is possible to use FastLynx in "Local Copy"
  14. mode with the Expansion Box device drivers.
  15.  
  16.     The basic idea behind Expansion Box is to let one PC use another
  17. PC as an expansion box.  The communication between the two PCs is
  18. accomplished with the high speed serial and parallel protocols
  19. developed for FastLynx (Fastwire II).  The FastLynx program transmits
  20. files quickly between two computers.  However, in many environments
  21. it is convenient to use two computers as if they are one computer.
  22. Expansion Box lets the disks and printers of one computer be accessed
  23. directly by another.  Thus application programs can access
  24. information on both computers simultaneously.  Regular DOS commands
  25. can use files on both computers and printing can be done by either
  26. computer (or both).
  27.  
  28.     A program like Expansion Box is possible because of a powerful
  29. feature of the MS-DOS operating system--known as installable device
  30. drivers.  Device drivers are part of the operating system.  They
  31. perform communication between a device--such as a disk or
  32. printer--and the rest of the computer.    In some cases the device is
  33. in the same box as the rest of the computer (for example a disk or
  34. internal modem).  In other cases the device is separate from the
  35. computer and communication is performed through a communication port
  36. and cable (such as a printer).    In either case, the device driver is
  37. the software that controls the communication to the device.
  38.  
  39.     Expansion Box device drivers are no different from regular device
  40. drivers.  Communication occurs on a serial or parallel cable and the
  41. controlled device is another computer.    The computer with the device
  42. drivers is called the lead or master computer.    The controlled
  43. computer is called the server or slave computer.
  44.  
  45.     You may have noted that these device drivers are "installable".
  46. Unfortunately, this means that they must be installed.    The EBOX
  47. program has a quick and easy installation option.  The installation
  48. option modifies your CONFIG.SYS and AUTOEXEC.BAT files.  To start the
  49. installation process, connect both computers with either a serial or
  50. parallel FastLynx cable and start the EBOX program on both computers.
  51. On the lead computer (you must decide which should be the lead
  52. computer) press Enter and follow the given instructions.
  53.  
  54.     It's likely that you will need no further information about the
  55. installation process.  However, some environments require a different
  56. setup than the installation option provides.  To handle these
  57. situations, an explanation of the device driver options and features
  58. follows.  If you have any problems or suggestions, please give us a
  59. call!
  60.  
  61.  
  62.  
  63.              EXPANSION BOX FILES
  64.  
  65.  
  66. There are seven files in the Expansion Box program.  They are:
  67.  
  68. 1) EBOX.EXE    The server program.  Execute this program on the
  69.         server computer when you want Expansion Box to be
  70.         active.  EBOX handles requests from the device
  71.         drivers on the lead computer.  Also, EBOX has options
  72.         to install the device drivers, to change the current
  73.         drive assignments and print mode, and to un-install
  74.         the device drivers.
  75.  
  76. 2) EBOX.HLP    The help screens for the EBOX.EXE program.
  77.  
  78. 3) README.BOX    This file.
  79.  
  80. 4) EBOXPAR.SYS    The main Expansion Box device driver for parallel
  81.         communication.    This device driver contains all the
  82.         code needed to use the disk drives of the server
  83.         computer using a parallel communication protocol.
  84.  
  85. 5) EBOXSER.SYS    The main Expansion Box device driver for serial
  86.         communication.    This device driver contains all code
  87.         needed to use the disk drives of the server
  88.         computer using a serial communication protocol.
  89.  
  90. 6) EBOXCHAR.SYS An auxiliary Expansion Box device driver for
  91.         additional character devices.  This device driver
  92.         contains all the code needed to use character devices
  93.         on the server computer.  Usually this would be a
  94.         printer, but it could also be used for COM ports or
  95.         even the server's clock.
  96.  
  97. 7) EBOXPRN.COM    A TSR (Terminate and Stay Resident) program used for
  98.         redirecting BIOS level printing.
  99.  
  100. EBOX.EXE and EBOX.HLP are the only files required on the server
  101. computer.  All others are used only on the lead system.  The EBOX.EXE
  102. program must be executing on the server system with the FastLynx
  103. cable connected for the lead system to be able to access the drives
  104. and devices of the server.  If EBOX is not executing or the cable is
  105. not connected, a drive or device not ready error will be issued.
  106.  
  107.  
  108.  
  109.     Main Block Device Drivers EBOXSER.SYS and EBOXPAR.SYS
  110.  
  111.     EBOXSER.SYS and EBOXPAR.SYS perform the same function.  The only
  112. difference between the two drivers is the communication protocol
  113. used.  EBOXSER.SYS uses serial communication and EBOXPAR.SYS uses
  114. parallel communication.  The installation process will determine
  115. which FastLynx cable you connected and install the correct driver for
  116. that cable.  The installation process also performs three other
  117. important services for these drivers:
  118.  
  119.     First, it sets the ports on which communication can take place.
  120. It sets the device drivers port list to EBOX's port list.  The
  121. parallel driver ignores serial ports, likewise the serial driver
  122. ignores parallel ports.  Normally the port list is "LPT*,COM*", and
  123. communication can occur on all valid ports.  To have the program
  124. automatically select the port that is connected to the other computer
  125. is a great convenience.  However, you can select a specific or
  126. non-standard port (or set of ports).  See the help screen to the port
  127. list configuration for more details.
  128.  
  129.     Second, the installation process sets up the default drive
  130. assignments.  Each drive on the server computer that you want to use
  131. from the lead computer must be assigned a drive letter.
  132. Unfortunately, the drive letter on the server system is usually being
  133. used by some other drive on the lead system.  For example:  if you
  134. want to use the server's drive A:, it needs to be assigned a drive
  135. letter on the lead system.  It would be nice to use the same drive
  136. letter, but A: is already assigned to the lead computer's floppy disk
  137. so another drive letter, such as D: or E:, must be assigned.  It is
  138. possible to assign any currently unused letter to the drive. However,
  139. MS-DOS assigns drive letters sequentially.  If you assign a drive to
  140. the letter Z:, all other drive letters (for instance letters between
  141. E: and Y:) will be unavailable for use other than within EBOX.    Also,
  142. each unused drive letter can require up to 200 bytes of resident
  143. memory!  Attempts to use unassigned drive letters will result in the
  144. lead system issuing an invalid unit number error.  The installation
  145. option will display a warning if this condition can occur.
  146.  
  147.     The drive letter assignments are probably the most difficult part
  148. of the Expansion Box programs to understand and use.  It is often
  149. difficult to remember which drive letters you have assigned to server
  150. drives.  You can examine the current drive assignments by choosing
  151. the "Change drive assignments" option of the EBOX program.  This
  152. option also allows you to change the current drive assignments.
  153.  
  154.     One mnemonically useful way to set up the drive assignments is
  155. to assign the server systems floppy drive to F: and its hard disk
  156. to H:.
  157.  
  158.     The last service performed by the installation option is for
  159. serial drivers only.  The installation will set the baud rate of the
  160. serial driver to the baud rate used at installation time.  Some
  161. computers cannot use the highest baud rate (notably the PS-2
  162. Model-80).  If you are having problems with serial communication,
  163. run the FastLynx diagnostic option to determine a safe baud rate.
  164.  
  165.     There are some options for block device drivers that are not
  166. available through the installation process.  To use these options,
  167. install the device driver normally.  After installing the drivers,
  168. you can edit your CONFIG.SYS file to take advantage of these options.
  169. After you have edited the CONFIG.SYS file, you will need to re-boot
  170. the computer to make the options effective.  The syntax for the
  171. device line in the CONFIG.SYS file is as follows:
  172.  
  173.     DEVICE=[path\]EBOXPAR.SYS [/Rdddd] [/Ssignature] [/A]
  174.  
  175.     for parallel communication or
  176.  
  177.     DEVICE=[path\]EBOXSER.SYS [/Rdddd] [/Ssignature] [/A]
  178.  
  179.     for serial communication (fields in [] are optional).
  180.  
  181.     /Rdddd    Specifies a maximum wait time for receive timeouts in
  182.         seconds.
  183.  
  184.     /Ssignature Specifies a unique signature for this device driver.
  185.  
  186.     /A        Specifies Auto Configuration Mode.
  187.  
  188.     Some types of devices are unusually slow in responding to
  189. requests made by the device driver.  Normally the device driver makes
  190. a request and waits for a response from the server system.  The
  191. maximum time that the device driver will wait is specified with the
  192. /R option.  Example: /R60 tells the device driver to wait one minute
  193. before timing out.  The default value is 20 seconds.  This is more
  194. than necessary for all hard disks, floppy disks, ram disks, etc.
  195. However, once in a while a longer timeout is needed.  A case where a
  196. longer timeout would be needed is when a tape drive is being used to
  197. emulate a disk drive and the rewind time takes too long.
  198.  
  199.     The /S switch is used to give this device driver a unique
  200. identity.  This is useful for hooking up multiple server computers to
  201. one lead computer.  A later section explains the use of this option.
  202.  
  203.     In some environments it is useful to have the drive assignments
  204. set up according to information received at boot time.    The following
  205. actions will take place when the /A option is used and communication
  206. is established at boot time.  1) The number of logical drives
  207. installed will be the number of logical drives on the server system.
  208. 2) The drive assignments will begin at the first available drive
  209. letter and proceed sequentially--one for each drive on the server.
  210. If communication is not established at boot time, the /A option has
  211. no effect.  After booting, the drive assignments can be changed in
  212. the normal manner.  This option is most useful when you are using one
  213. computer to hook up to several different server computers at
  214. different times.  However, its usefulness is limited because you must
  215. reboot every time you hook up to a different computer.    If you do not
  216. reboot when you hook up to another computer, you will receive a
  217. server mismatch error.    Expansion Box forces this error to avoid
  218. problems with the computer's disk cache.
  219.  
  220.  
  221.  
  222.            BIOS Level Print Redirector EBOXPRN.COM
  223.  
  224.     Printing can be sent to the server computer at two levels.    One
  225. method is to install a character device driver for the printer.  This
  226. method will be described in the next section.  Another method is to
  227. trap the print requests at the BIOS level.  There are several
  228. advantages to trapping print requests at the BIOS level.  First, many
  229. applications use BIOS level printing rather than DOS level printing.
  230. Also, the Print Screen keys (PrtSc and Ctrl/P) use BIOS level
  231. printing.  The standard LPT device drivers simply call the BIOS to
  232. perform the actual printing, so trapping the print requests at the
  233. device driver level is not really necessary.
  234.  
  235.     The EBOXPRN.COM TSR performs BIOS level print redirection.    The
  236. installation process will place a command in AUTOEXEC.BAT to load
  237. this TSR.  If you do not desire printing to be redirected, remove the
  238. line from AUTOEXEC.BAT.  EBOXPRN requires that one of the Expansion
  239. Box block drivers be loaded.  If a main block driver is not found, an
  240. error message will be displayed and EBOXPRN will not install itself.
  241. If EBOXPRN has already been loaded, it does not reload itself, but
  242. simply changes the current options.  The command line is:
  243.  
  244.     eboxprn [/Ssignature] [/Mm] [/Pls[ls[ls]]]
  245.  
  246.     The /Ssignature option identifies a particular main Expansion Box
  247. driver that contains the communication protocol.  This option is
  248. described in a later section.
  249.  
  250.     The /P switch specifies a port mapping table.  Each ls pair
  251. contains a mapping for a single BIOS port.  Both the l and the s must
  252. be between 1 and 3 inclusive.  The l specifies the line printer
  253. number on the lead system (1 for LPT1, 2 for LPT2, ...) and the s is
  254. the line printer number on the server system to which the print from
  255. the lead printer is to be sent.  If the /P is specified, all ports
  256. not specifically mentioned, will not be redirected.  Examples:
  257.  
  258.     /P12    redirects lead printer LPT1 to server printer LPT2 and
  259.         does not redirect LPT2 or LPT3.
  260.  
  261.     /P1222  redirects both LPT1 and LPT2 to the server's LPT2.  LPT3
  262.         is not redirected.
  263.  
  264.     If no /P switch is found when the TSR is loaded, /P112233 is
  265. assumed.
  266.  
  267.     The /Mm defines the current printing mode.    M can be one of R, L,
  268. or A.
  269.  
  270.     R    Remote mode.  When in remote mode, all print requests will be
  271.     sent to the server system.  If the server printer is not on-
  272.     line or the server system is not connected (or not running
  273.     EBOX), a printer off line error code will be returned to the
  274.     lead system.
  275.  
  276.     L    Local mode.  When in local mode, print requests are not sent
  277.     to the server computer.  No port mappings are done.  This
  278.     mode essentially turns off all print redirection.
  279.  
  280.     A    Autoswitch mode.  This mode attempts to print on the server
  281.     computer.  However, if the server printer is not on-line,
  282.     an attempt will be made to do the printing on the lead
  283.     computer.  Essentially, this mode attempts to find which
  284.     computer has an on-line printer, and sends the print request
  285.     to that printer.
  286.  
  287.     The print mode can be changed by either the EBOXPRN command or by
  288. using the Change Print Mode option in the EBOX program.  The port
  289. mapping table can only be changed with the EBOXPRN command.
  290.  
  291.  
  292.         Character Device Drivers EBOXCHAR.SYS
  293.  
  294.     There are two kinds of device drivers--block and character.  Block
  295. devices are devices which have files stored on them--such as disks,
  296. or floppy disks.  Character devices are non-file devices used for
  297. input or output--such as printers, keyboards, or mice.    Accesses to
  298. block devices are made through drive letters such as A: or C:.
  299. Accesses to character devices are made through a name such as COM1 or
  300. LPT2.  The EBOXPAR.SYS and EBOXSER.SYS device drivers are block
  301. drivers.  With one of those device drivers, you can get access to all
  302. of the block devices on the server computer.  EBOXCHAR.SYS is a
  303. character driver with which you can gain access to a single character
  304. driver on the server system.  The installation program does not
  305. install this driver for you.  If you wish to use one of the server
  306. system's character devices, you will need to add the following
  307. DEVICE= line to your CONFIG.SYS file:
  308.  
  309.     DEVICE=[path\]eboxchar.sys /Nname /Rserver_name [/Ssignature]
  310.  
  311.     The signature option and path are optional.  However you must
  312. specify both the lead name (/N) and the server name (/R).  These
  313. options are described below:
  314.  
  315.     The /Ssignature option is used to identify the particular main
  316. Expansion Box driver that contains the communication protocol.    This
  317. will be described in a later section.  Note, an Expansion Box block
  318. device driver must be loaded before any character device drivers.
  319.  
  320.     The /Nname option specifies the character device name on the lead
  321. system.  This can be from one to eight of the valid filename
  322. characters.  If this name is the same as a device driver that already
  323. exists on the lead system, then the previous driver will be
  324. superceded by this device driver.
  325.  
  326.     The /Rserver_name specifies the character device name on the
  327. server system.    This device name must be an already existing device
  328. driver on the server system.  If it does not exist, you will be given
  329. an error message if you attempt to use the device.  Like the lead
  330. name, this name can be from one to eight valid filename characters.
  331.  
  332.     Examples:
  333.  
  334.     DEVICE=EBOXCHAR.SYS /NLASER /RLPT2
  335.  
  336.     This device line adds a new device LASER to the lead system.
  337. Output requests made to the device LASER will be sent to the server
  338. system's LPT2.
  339.  
  340.     DEVICE=EBOXCHAR.SYS /NPRN /RPRN
  341.  
  342.     This device line replaces the lead systems PRN device with the
  343. remote systems PRN device.  Output that would normally go to the PRN
  344. device on the lead computer will be sent to the PRN device on the
  345. server computer.  Normally this would not be needed as the BIOS level
  346. redirection (EBOXPRN.COM) can perform the same operation.  However,
  347. if you have an improved print spooler, it may be useful to redirect
  348. the print at the device driver level rather than the BIOS level to
  349. take advantage of the spooler's better print buffering.
  350.  
  351.     DEVICE=EBOXCHAR.SYS /NCOM2 /RCOM1
  352.     DEVICE=EBOXCHAR.SYS /NREMPRN /RPRN
  353.  
  354.     The above example adds two device drivers to the lead system.
  355. Note that both device drivers use the same driver file.  The first
  356. line replaces the lead system's COM2 with the remote system's COM1
  357. device.  Input and output requests on COM2 will be redirected from/to
  358. the server system's COM1.  The second line adds a new device REMPRN
  359. to the lead computer.  It will send output to the server computer's
  360. PRN device.  (Note, there is a difference between the device PRN and
  361. LPT1--the difference is the name--but DOS thinks that the two are
  362. different devices).
  363.  
  364.     Any character device driver can be superceded by an Expansion
  365. Box device (except the NUL device).  This includes devices such as
  366. CLOCK$ and CON.  However, overriding the CON device (the keyboard and
  367. screen) will most likely not yield the expected results.  Too many
  368. programs skip the device driver levels and write directly to the
  369. screen or read directly from the keyboard at the BIOS or hardware
  370. level.    If you want to experiment with the CON device we STRONGLY!!
  371. recommend that you test the process from a bootable floppy disk
  372. before installing the device driver on you hard disk!
  373.  
  374.  
  375.         Installing More than One Expansion Box
  376.  
  377.     It is possible to have multiple servers attached to a single lead
  378. computer.  The main block drivers do all of the actual communication.
  379. The character device drivers and the TSR look for the presence of a
  380. main block driver and use the protocol routines within the main
  381. driver for communication to the server computer.  This is done to
  382. save (a lot of) resident memory.  However, it causes problems when
  383. multiple block drivers are installed; an auxiliary driver or TSR will
  384. not know which main driver to use.  To solve this problem all
  385. Expansion Box device drivers, TSRs and the EBOX program itself take a
  386. command line argument /Ssignature.  When the auxiliary driver or TSR
  387. is loaded, it looks for the main driver with the matching signature.
  388. If a main driver with the same signature is not found, an error will
  389. be reported and the device driver will not be installed.  The
  390. signature can be from one to eight valid filename characters.
  391.  
  392.     To change drive mappings or print modes when multiple drivers are
  393. installed, the EBOX.EXE program also takes a /Ssignature option on
  394. the command line.  Note that if you misspell the signature, the EBOX
  395. program will not find the main driver you were looking for and think
  396. that no drivers are installed.    If this happens, simply exit and try
  397. again.
  398.  
  399.     One other problem can occur when trying to install multiple
  400. Expansion Boxes.  If you have additional FastLynx parallel or serial
  401. cables, you may want to use the same communication protocol to talk
  402. to both server computers.  The problem is that the device drivers for
  403. both server computers would have the same name (either EBOXSER.SYS or
  404. EBOXPAR.SYS).  The port list and drive assignments tables are part of
  405. the driver itself, so you cannot use the same device driver file for
  406. both servers.  One solution to this problem is to install the first
  407. driver, rename the device driver and change the DEVICE= line in
  408. CONFIG.SYS appropriately, then install the second driver (with a
  409. different port list, signature, and drive assignment tables).  You
  410. should completely install the first driver (including the re-boot)
  411. before attempting to install a second one.
  412.  
  413.  
  414.     Partitions Larger than 32MB and 12-bit vs 16-bit FATs
  415.  
  416.      Expansion Box correctly handles partitions larger that 32MB on
  417. IBM DOS 4.0, Compaq DOS 3.31, and Zenith DOS 3.30 PLUS.  The method
  418. to handle large partitions for DOS 4.0 is slightly different than the
  419. method used by DOS 3.31 and DOS 3.30+.    However, Expansion Box
  420. detects this condition and adjusts accordingly.  That is, it is
  421. possible to have a DOS 4.0 system for one computer and a DOS 3.31 or
  422. DOS 3.30+ system for the other, both with large partitions.
  423.  
  424.     Due to the evolving nature of MS-DOS, there are certain errors
  425. that can occur when the lead computer is running a DOS version
  426. previous to the DOS version on the server.  These conditions are
  427. given below.  Please note, it is always possible to reverse the roles
  428. of the computers to avoid these problems.
  429.  
  430.     DOS 2.xx cannot access a DOS 3.xx or 4.xx disk if the FAT (File
  431. Allocation Table) entries are 16-bits.    DOS 2.xx can only access
  432. 12-bit FATs.  DOS 3.0 and greater can access both 12-bit and 16-bit
  433. FATs.  Attempts by a lead system running DOS 2.xx to access a server
  434. disk drive that has a 16-bit FAT will result in a NON-DOS disk error
  435. (which can only be aborted).
  436.  
  437.     DOS versions previous to DOS 3.31 cannot access partitions larger
  438. than 32MB.  An attempt by a lead computer running a DOS version
  439. previous to DOS 3.31 to access a partition larger that 32MB will
  440. result in a NON-DOS disk error.
  441.  
  442.     There are several products on the market that modify DOS to be
  443. able to access partitions larger than 32MB (previous to DOS 3.31).
  444. To use Expansion Box with these products, both computers must be
  445. running the same modified DOS version.    Attempts to access partitions
  446. larger than 32MB by DOS versions that are not modified in the same
  447. manner will result in a NON-DOS disk error.  Generally these products
  448. work by using a sector size larger than 512 bytes.  Expansion Box
  449. looks for sector size incompatibility and issues errors and warnings
  450. appropriately.
  451.  
  452.     You can also hook multiple computers up in a chain.  However, the
  453. performance will not be as good as if the server computers are hooked
  454. up directly to the lead.  In this case the computers in the middle of
  455. the chain are acting as both lead and server simultaneously.
  456.  
  457.            Optional Device Driver Features
  458.  
  459.     Starting with DOS 3.0 there are several optional features for
  460. device drivers.  The Expansion Box block drivers support all of these
  461. optional features except IOCTL and GENERIC IOCTL (which include get
  462. and set logical device).  Since Generic IOCTL is not supported, you
  463. will not be able to format disks through the Expansion Box drivers.
  464.  
  465.     The only feature not supported in the Expansion Box character
  466. drivers is GENERIC IOCTL.  Not supporting the Generic IOCTL feature
  467. means that setting alternate character sets for character devices
  468. cannot be done though the Expansion Box.  Note that the normal IOCTL
  469. is support (since it is often used to control printers and modems).
  470.  
  471.     Also note: attempts to access Expansion Box devices through the
  472. BIOS will not work (except BIOS printing which is handled by
  473. EBOXPRN.COM).
  474.